package com.uubx.exception;

import com.uubx.result.MessageCode;

public class CustomerException extends  Exception {

    private MessageCode messageCode;

    public CustomerException(MessageCode messageCode){
        //给父类传递异常信息
        super(messageCode.getMessage());
        this.messageCode=messageCode;

    }

    public MessageCode getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(MessageCode messageCode) {
        this.messageCode = messageCode;
    }
}

